package com.china08.yxyapi.entity.db.questionbank;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 
 * 
 * 题库: 课本信息
 *
 * @author Richard.Wang
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_quesbank_book", catalog = "yxy_question_bank")
public class YxyQuesbankBook extends BaseEntityNoId {

    //
    @Id
    @Column(columnDefinition = "varchar(32) comment 'id' ")
    private String id;

    @Column(nullable = false, columnDefinition = "varchar(255) comment '名称' ")
    private String name;

    // 版本
    @Column(nullable = false, columnDefinition = "varchar(32) comment '版本id' ")
    private String versionId;

    @Column(nullable = false, columnDefinition = "varchar(255) comment '版本名称' ")
    private String versionName;

    // 状态信息0无效 1 有效
    @Column(nullable = false, columnDefinition = "tinyint default 1 comment '状态信息0无效 1 有效' ")
    private Integer status;
    // 排序字段
    @Column(columnDefinition = "int default 100 comment '排序字段' ", nullable = false)
    private Integer orderNum = 100;
    /**
     * 
     */
    @Temporal(TemporalType.DATE)
    @Column
    private Date pulbicationDate;

    /**
     * 教材封面
     */
    @Column(length = 100)
    private String cover;

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     *            the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the versionId
     */
    public String getVersionId() {
        return versionId;
    }

    /**
     * @param versionId
     *            the versionId to set
     */
    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    /**
     * @return the versionName
     */
    public String getVersionName() {
        return versionName;
    }

    /**
     * @param versionName
     *            the versionName to set
     */
    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    /**
     * @return the status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     *            the status to set
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return the pulbicationDate
     */
    public Date getPulbicationDate() {
        return pulbicationDate;
    }

    /**
     * @param pulbicationDate
     *            the pulbicationDate to set
     */
    public void setPulbicationDate(Date pulbicationDate) {
        this.pulbicationDate = pulbicationDate;
    }

    /**
     * @return the cover
     */
    public String getCover() {
        return cover;
    }

    /**
     * @param cover
     *            the cover to set
     */
    public void setCover(String cover) {
        this.cover = cover;
    }

    /**
     * @return the orderNum
     */
    public Integer getOrderNum() {
        return orderNum;
    }

    /**
     * @param orderNum
     *            the orderNum to set
     */
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

}
